import { curry } from "../src/index.js";

var fn = curry(function (a, b, c, d, e) {
  console.log(a, b, c, d, e)
})

fn('_', 2, 3, 4, 5)(1);
fn(1, '_', 3, 4, 5)(2);
fn(1, '_', 3)('_', 4)(2)(5);
fn(1, '_', '_', 4)('_', 3)(2)(5);
fn('_', 2)('_', '_', 4)(1)(3)(5)
// [0, 2, 3]
fn(1, 2, 3, '_')(4)('_')(5)
fn(1, 2, 3, '_', '_')(4)(5)

fn(1, '_', 3)('_', 4, '_')(2)(5)
fn(1, 2, 3, '_', '_')(4, 5)


// console.log(fn('a', 'b', '_')('C')('_')('d'))

// ['a', '_', 'c', '_']
// [1, 3]

// ['a', 'b', '_', '_']
// [2, 3]